
package com.insigma.business.qrcode.soldier.dao;


import com.insigma.business.qrcode.soldier.dto.GovResourceBSearcher;
import com.insigma.business.qrcode.soldier.entity.GovResourceDO;
import org.apache.ibatis.annotations.Param;

import java.util.List;


public interface GovResourceDao {

    
    List<GovResourceDO> search(final GovResourceBSearcher innerSearcher);

    
    GovResourceDO get(final String id);

    
    Integer insert(final GovResourceDO govResourceDO);

    
    Integer update(final GovResourceDO govResourceDO);

    
    Integer delete(@Param("id") final String id,
                   @Param("modifierType") final String modifierType,
                   @Param("modifierId") final String modifierId);

    
    List<GovResourceDO> getResourcesByRoleId(String roleId);

    GovResourceDO getByCode(String parentCode);

    List<GovResourceDO> getByParentCode(String code);
}
